package com.itheima.extendsdemo;

/**
 * 2025/4/12 10:16
 */
public class Teacher extends Employee {

    //学科
    public String subject;

    public void teach() {
        System.out.println("老师在讲课"+subject);
    }
}
